import { Component } from '@angular/core';
import { NzInputModule } from 'ng-zorro-antd/input';

@Component({
  selector: 'app-input-textarea',
  standalone: true,
  imports: [NzInputModule],
  template: `
    <div class="demo">
      <div style="max-width: 100px; " class="my-2">
        <textarea nz-input nzAutosize></textarea>
      </div>

      <div style="max-width: 100px; " class="my-2">
        <textarea nz-input [nzAutosize]="{ minRows: 2, maxRows: 6 }"></textarea>
      </div>

      <div style="max-width: 100px;  " class="my-2">
        <textarea nz-input [nzAutosize]="{ minRows: 3, maxRows: 5 }"></textarea>
      </div>
    </div>
  `,
  styles: ``,
})
export class InputTextareaAutoComponent {}
